package date;

import java.util.Calendar;
import java.util.Scanner;

public class Week1 {

	public static void main(String[] args) {
		int y,m,d,week;
		Scanner in=new Scanner(System.in);
		System.out.println("请输入要查询的日期：");
		y=in.nextInt();
		m=in.nextInt();
		d=in.nextInt();
		Calendar c=Calendar.getInstance();
		c.set(y, m-1, d);
		week=c.get(Calendar.DAY_OF_WEEK);
		String[] w={"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};
		System.out.println("您要查询的日期为"+w[week-1]);
		in.close();
		
		
				
	}

}
